package com.yunyi.lam.test;

import com.sun.org.apache.regexp.internal.RE;

import java.util.function.Function;

public class Simple03 {
    public static void main(String[] args) {
        typeCover((String s) -> {
            System.out.println("S:" + s);
            return Integer.parseInt(s);

        });

    }


    public static <R> R typeCover(Function<String, R> function) {
        String temp = "123";
        return function.apply(temp);
    }
}
